package com.java.exer_3;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author shkstart
 * @create 2021-01-12 14:03
 */
class SimpleDateFormatTest {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat s1 = new SimpleDateFormat();
        String s2 = "2020-10-1 14:00:04";
        Date s3 = s1.parse(s2);
        System.out.println(s3);

    }
}
